package com.zc58s.javabase.beans;

/**
 * @author : fujc-dev@qq.com
 * @created : 2022/11/29 9:01
 */

public class Outer {
    private String outerName = "Tony";

    class Inner {
        private String name;

        public Inner() {
            this.name = outerName;
        }
    }

    Inner createInner() {
        return new Inner();
    }
}

class Demo {
    public static void main(String[] args) {
        Outer.Inner inner = new Outer().createInner();
        System.out.println(inner);
    }
}
